Skip to content

Create a GroupProfile for the Staff Content Team #6587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

smithellis
Copy link
Contributor

Add a GroupProfile for the Staff Content Team group.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new migration to create a GroupProfile for the Staff Content Team, ensuring that the group profile is only created if the corresponding group exists.

  • Adds migration script with functions to create and remove the Staff Content Team group profile
  • Sets dependencies for the migration to ensure proper ordering
Comments suppressed due to low confidence (1)

kitsune/groups/migrations/0004_add_staff_content_team_profile.py:18

  • [nitpick] Consider using a more specific exception type (e.g., a Django-specific migration exception) to provide clearer error context.
raise Exception("Staff Content Team group must exist before running this migration")

@smithellis smithellis requested a review from escattone March 24, 2025 19:48
Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+wc

@smithellis smithellis merged commit 05539fb into mozilla:main Mar 25, 2025
2 checks passed
@smithellis smithellis deleted the add-profile-to-staff-content-team-group branch March 25, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants